package me.feng.chatterbot;
import com.google.code.chatterbotapi.ChatterBot;
import com.google.code.chatterbotapi.ChatterBotFactory;
import com.google.code.chatterbotapi.ChatterBotSession;
import com.google.code.chatterbotapi.ChatterBotType;

public class ChatterBotApiTest {

	public static void main(String[] args) throws Exception {
		ChatterBotFactory factory = new ChatterBotFactory();

		ChatterBot bot1 = factory.create(ChatterBotType.CLEVERBOT);

		ChatterBot bot2 = factory.create(ChatterBotType.PANDORABOTS,
				"b0dafd24ee35a477");
		ChatterBotSession bot2session = bot2.createSession();

		String s = "你好";

		System.out.println("bot1> " + s);

		s = bot2session.think(s);
		System.out.println("bot2> " + s);

	}
}
